<?php
namespace catchAdmin\product\request;

use catchAdmin\product\model\Pack;
use catcher\base\CatchRequest;

class PackCreateRequest extends CatchRequest
{

    protected function rules(): array
    {
        // TODO: Implement rules() method.
        return [
            'layup_num'   => 'require|unique:db_packing,layup_num^unit_id^packing_num'
        ];
    }

    protected function message()
    {
        // TODO: Implement message() method.
        return [
            'layup_num.unique' => '已存在相同包装层级',
            'layup_num.require'=>"托盘可放置数量不能为空"
        ];
    }
}